Skip to content

Conversation

ubidefeo
Copy link
Collaborator

@ubidefeo ubidefeo commented Feb 4, 2019

The changes applied to ArduinoIoTCloud include the implementation of a generic abstract class to handle connection/disconnection/reconnection.
An overloaded method has been added to accept a ConnectionManager* object and defer tests of current network connection status to it during ArduinoCloud.update();

Also the state machine implemented for connection states has proven to be very reliably even on boards with old firmware which struggle to obtain network time.

For now only the WiFiConnectionManager class is implemented.
Work on the GSMConnectionManager will follow.

@ubidefeo
Copy link
Collaborator Author

ubidefeo commented Feb 5, 2019

[ UPDATE: fixed ]
Please do not merge yet.
I found a weird behaviour returning of ArduinoCloud.connect() returning 0 when connected or returning 1 when not and not triggering a change of state.
looking into it now.

@ubidefeo ubidefeo reopened this Feb 5, 2019
- adjusted default output message verbosity
- refactored ArduinoIoTCloud
- added updated example
@mastrolinux mastrolinux merged commit ee2a275 into master Feb 5, 2019
@aentinger aentinger deleted the connection-manager branch February 5, 2019 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants